package com.xihua.sx.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//分页插件配置
@Configuration
public class MybatisPlusConfig {
    //它会动态的为sql语句添加limit，page，size
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }


}
